<!-- O principio... -->
<!DOCTYPE html>
<html>
  <head>
    <!-- Codificacao da pagina -->
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Importacao da folha de estilos -->
    <link rel="STYLESHEET" href="../view/css/estilo.css" type="text/css"/>
    <!-- Titulo da pagina -->
    <title>Chave de Roda - Cadastro</title>
  </head>
  <body>
    <?php
      require_once ('../controller/marcaController.php');
      require_once ('../controller/modeloController.php');
      require_once ('../controller/combustivelController.php');
    ?>
    <div class="centraliza">
      
        <div class="cabecalho">
          <!-- Link para pagina inicial -->
          <a href="http://localhost/chavederoda/trunk">
            <h1>Chave de Roda - <em>Cadastro</em> </h1>
          </a>
        </div>     
      
      <div>
        
        <h3 class="cadastro">Preencha atentamente</h3>
        
        <form action="validaCadastro.php" method="POST">
          <!--Cadastro de dados pessoais-->
          <fieldset class="cadastro">
            <legend>Dados pessoais</legend>
            <table cellpadding="3">
              <tr>
                <td>Nome Completo: </td>
                <td><input type="text" name="nome" id="nome" size="30"/></td>
              </tr>
              <tr>
                <td>Login: </td>
                <td><input type="text" name="login" id="login" size="16"/></td>
              </tr>
              <tr>
                <td>E-mail: </td>
                <td><input type="text" name="email" id="email" size="30"/></td>
              </tr>
              <tr>
                <td>CNH: </td>
                <td><input type="text" name="cnh" id="cnh" size="20"/></td>
              </tr>
              <tr>
                <td>Senha: </td>
                <td><input type="password" name="senha" id="senha" size="8"/></td>
              </tr>
            </table>
          </fieldset>
          <!-- Cadastro do veiculo -->
          <fieldset class="cadastro">
            <legend>Dados do veículo</legend>
            <table cellpadding="3">
              <tr>
                <td>Marca: </td>
                <td>
                  <select name="marca" id="marca">
                    <option>Selecione</option>
                    <?php
                      $manager = new marcaController();
                      $manager->exibeMarcas();
                    ?>
                  </select>
                </td>
                <td>Modelo: </td>
                <td>
                  <select name="modelo" id="modelo">
                    <option>Selecione</option>
                    <?php
                      $manager = new modeloController();
                      $manager->exibeModelos();
                    ?>
                  </select>
                </td>
                <td>Combustivel: </td>
                <td>
                  <select name="combustivel" id="combustivel">
                    <option>Selecione</option>
                    <?php
                      $manager = new combustivelController();
                      $manager->exibeCombustiveis();
                    ?>
                  </select>
                </td>
              </tr>
              <tr>
                <td>Cor: </td>
                <td><input type="text" name="cor" id="cor" size="8"/></td>
              </tr>
              <tr>
                <td>Ano: </td>
                <td><input type="text" name="ano" id="ano" size="8"/></td>
              </tr>
              <tr>
                <td>Placa: </td>
                <td><input type="text" name="placa" id="placa" size="14"/></td>
              </tr>
            </table>
          </fieldset>
          <center>
            <input type="submit" name="cadastrar" value="Cadastrar!"/>
            <input type="reset" name="limpar" value="Limpar"/>
          </center>
        </form>
      </div>
      
    </div>
    
    <footer>
      <?require_once ('rodape.php');?>
    </footer>
  </body>
</html>
<!-- ...e o fim! 
 Toda honra e gloria a Deus!-->
